package router

import (
	"awesomeProject/goods-web/api/brands"
	"awesomeProject/goods-web/middlewares"
	"github.com/gin-gonic/gin"
)

func InitBrandsRouter(Router *gin.RouterGroup) {
	BrandsRouter := Router.Group("brands").Use(middlewares.Trace())
	{
		BrandsRouter.GET("", brands.List)
		BrandsRouter.DELETE("/:id", brands.Delete)
		BrandsRouter.POST("", brands.New)

		BrandsRouter.PUT("/:id", brands.Update)
	}
}
